package com.changgou.goods.feign;

import com.changgou.goods.pojo.Category;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



/**
 * @author 大佬味的小男孩
 * @description:
 * @date 2020/07/27 21:39
 */
@FeignClient(name = "goods")
public interface CategoryFeign {

    @GetMapping("/category/{id}")
    public Category findById(@PathVariable("id") Integer id);
}
